;(function() {
	'use strict';
	angular.module('services.omdisplay.operationDevelop')
		.factory('sysOnlineChangeService', sysOnlineChangeService);
	function sysOnlineChangeService(Restangular){
		return {
			queryRiskLev : function(params,callback){
				Restangular.all('sas/OMdisplay/sysOnlineChange').post(params).then(callback);
			},
			queryDet : function(params,callback){
				Restangular.all('sas/OMdisplay/sysOnlineChangeDet').post(params).then(callback);
			},
			getPageBind : function(){
				var year = new Date().getFullYear();
				var month = new Date().getMonth();
				return {
					system:'',
					startTime : new Date(year,month),
					endTime : new Date(year,month),
					riskLev : []
				};
			},
			getRiskData : function(){
				return [{
					riskCode:'1',
					riskName:'重大'
				},{
					riskCode:'2',
					riskName:'高'
				},{
					riskCode:'3',
					riskName:'中'
				},{
					riskCode:'4',
					riskName:'低'
				}];
			}
		};
	}
})();